how to exit winforms application and shutdown pc in c#

65

how to exit winforms application and shutdown pc in c# -

System.Environment.Exit(1);

how to exit winforms application and shutdown pc in c# -

Process.Start("shutdown","/s /t 0");

how to exit winforms application and shutdown pc in c# -

var psi = new ProcessStartInfo("shutdown","/s /t 0");

Comments

Submit
0 Comments